package WeekTest01;

public class TestBook {

	public static void main(String[] args) {
		Book a = new Book(2000,"老人与海",50);
		Book b = new Book(2001,"C++编程",60);
		Book c = new Book(2002,"java编程",70);
		
		if (a.getPrice() > b.getPrice()) {
			if (a.getPrice() > c.getPrice())
				a.toSting(a.getNo(), a.getName(), a.getPrice());
			else
				c.toSting(c.getNo(), c.getName(), c.getPrice());

		}

		else if (b.getPrice() > c.getPrice())
			b.toSting(b.getNo(), b.getName(), b.getPrice());

		else
			c.toSting(c.getNo(), c.getName(), c.getPrice());

	}
}
